2 * Adium is the legal property of its developers, whose names are listed in the copyright file included
3 * with this source distribution.
5 * This program is free software; you can redistribute it and/or modify it under the terms of the GNU
6 * General Public License as published by the Free Software Foundation; either version 2 of the License,
7 * or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
10 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
11 * Public License for more details.
13 * You should have received a copy of the GNU General Public License along with this program; if not,
14 * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 #import "AIPurpleOscarAccountViewController.h"
18 #import <Adium/AIStatusControllerProtocol.h>
19 #import "CBOscarService.h"
20 #import "DCPurpleOscarJoinChatViewController.h"
23 * @class CBOscarService
24 * @brief Superclass for ESAIMService and ESICQService
26 * This service is abstract and should not be used directly.
28 @implementation CBOscarService
31 - (AIAccountViewController *)accountViewController{
32 return [AIPurpleOscarAccountViewController accountViewController];
35 - (DCJoinChatViewController *)joinChatView{
36 return [DCPurpleOscarJoinChatViewController joinChatView];
40 - (NSString *)serviceClass{
41 return @"AIM-compatible";
43 - (NSCharacterSet *)allowedCharacters{
44 return [NSCharacterSet characterSetWithCharactersInString:@"+abcdefghijklmnopqrstuvwxyz0123456789@._- "];
46 - (NSCharacterSet *)allowedCharactersForUIDs{
47 return [NSCharacterSet characterSetWithCharactersInString:@"+abcdefghijklmnopqrstuvwxyz0123456789@._- "];
49 - (NSCharacterSet *)ignoredCharacters{
50 return [NSCharacterSet characterSetWithCharactersInString:@" "];
52 - (AIServiceImportance)serviceImportance{
53 return AIServiceUnsupported;
56 #pragma mark Must be subclassed
57 - (NSString *)serviceCodeUniqueID{
58 return @""; /* Subclasses should return a value starting with libpurple-oscar */
60 - (NSString *)shortDescription{
63 - (NSString *)longDescription{
66 - (NSString *)serviceID{
72 * @brief Register statuses
74 - (void)registerStatuses{
75 [[adium statusController] registerStatus:STATUS_NAME_AVAILABLE
76 withDescription:[[adium statusController] localizedDescriptionForCoreStatusName:STATUS_NAME_AVAILABLE]
77 ofType:AIAvailableStatusType
80 [[adium statusController] registerStatus:STATUS_NAME_AWAY
81 withDescription:[[adium statusController] localizedDescriptionForCoreStatusName:STATUS_NAME_AWAY]
82 ofType:AIAwayStatusType
85 [[adium statusController] registerStatus:STATUS_NAME_INVISIBLE
86 withDescription:[[adium statusController] localizedDescriptionForCoreStatusName:STATUS_NAME_INVISIBLE]
87 ofType:AIInvisibleStatusType